/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Bundel;

import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 *
 * @author Administrator
 */
public class SalemPadResources {

private static ResourceBundle res = null;

public SalemPadResources(){

}

//----- Return the resouce bundle ---------------
  public static ResourceBundle getInstance() {
    if (res == null) {
      try {

        res = ResourceBundle.getBundle("resources/EnPad");

      } catch (MissingResourceException mre) {

        mre.printStackTrace();
        System.err.println(java.util.ResourceBundle.getBundle("Bundel/Bundle").getString("Cannot_get_resources/EnPad.properties"));
        System.exit(1);
      }
    }
    return res;
  }
}
